package com.diy.yuhaofilm.adapter

import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.diy.yuhaofilm.widget.HomeItemView
import com.itheima.player.model.bean.HomeItemBean

/**
 *@Class: HomeAdapter
 *@Description:()
 *@Date: 2021/4/8  14:00
 *@Company: 跟我学吧
 *@author: yuhao
 *@Version: v1.0
 */
class HomeAdapter : RecyclerView.Adapter<HomeAdapter.HomeHolder>() {


    override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): HomeHolder {
        return HomeHolder(HomeItemView(parent.context))

    }
    override fun getItemCount(): Int {
        return 10
    }
    override fun onBindViewHolder(holder:HomeHolder, position: Int) {
//        HomeItemView(holder.itemView.context).setData(HomeItemBean(),)
    }
    class HomeHolder(itemview: View):RecyclerView.ViewHolder(itemview){


    }
}